package com.cw.jeeyt.service.intf.security;

import com.cw.jeeyt.service.bo.security.SecurityUserRoleBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * 用户角色业务接口
  * @author chenw
 * @version 1.0.0
 */
public interface SecurityUserRoleService {

    /**
     * 删除用户角色
     *
     * @param userRoleBo
     */
    void delete(SecurityUserRoleBo userRoleBo) throws Exception;

    /**
     * 更新用户角色
     *
     * @param userRoleBo
     */
    void update(SecurityUserRoleBo userRoleBo) throws Exception;

    /**
     * 根据主键查询用户角色
     *
     * @param id
     * @return
     */
    SecurityUserRoleBo getUserRoleById(String id) throws Exception;

    /**
     * 新增用户角色
     *
     * @param userRoleBo
     * @return
     */
    Integer insert(SecurityUserRoleBo userRoleBo) throws Exception;

    /**
     * 分页查询用户角色
     *
     * @param userRoleBo
     * @param startNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<SecurityUserRoleBo> queryByPage(SecurityUserRoleBo userRoleBo, Integer startNum, Integer pageSize)
    throws Exception;
}
